package com.tiheima.controller;

import com.tiheima.model.dos.LogListDO;
import com.tiheima.model.dos.StuListDO;
import com.tiheima.model.dto.LogPageQuery;
import com.tiheima.model.result.PageResult;
import com.tiheima.model.result.Result;
import com.tiheima.service.LogService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/log")
public class LogController {

    @Resource
    private LogService logService;

    @RequestMapping("/page")
    public Result<PageResult<LogListDO>> page(LogPageQuery logPageQuery){
        PageResult<LogListDO> vos = logService.page(logPageQuery);
        return Result.success(vos);
    }
}
